package ngat.oss.scheduling.auctions;

/** Event class for rejecting a bid.*/
public class RejectEvent extends AuctionEvent {

    /** The reason for rejection of bid.*/
    private String reason;

    /** */
    public RejectEvent(long timeStamp, int auctionId, String reason) {
	super(timeStamp, auctionId);
	this.reason = reason;
    }

    /** Returns the reason for rejection of bid.*/
    public String getReason() { return reason; }

    /** Returns a readable representation of this AuctionEvent.*/
    public String toString() { 
	return super.toString()+":[Reject, Reason:"+reason+"]";
	
	// e.g. AuctionEvent@1102293933:AX67B:[Reject, Reason:Bid was too low] etc
    }
}
